#ifndef XMLHELPER_H_
#define XMLHELPER_H_

#include "scHeader.h"

namespace sybilpm
{

/**
 * The state engine specific to the SrvConnection class.
 */
class XmlHelper
{
public:
	static QString domain2DomainText(DataDomain domain);
	static DataDomain domainText2Domain(QString domainText);

	static QString requestType2requestTypeText(RequestType requestType);
	static RequestType requestTypeText2requestType(QString requestTypeText);

	static QString scopeType2scopeTypeText(ScopeType scopeType);
	static ScopeType scopeTypeText2scopeType(QString scopeTypeText);

	static QXmlStreamWriter * createXmlDoc(QBuffer * buffer);
	static void finishXmlDoc(QXmlStreamWriter * xmlWriter);
};

} // namespace sybilpm

#endif /* XMLHELPER_H_ */
